package ai.plantdata.Creation.mode.BuilderPattern.builds;

import ai.plantdata.Creation.mode.BuilderPattern.Meal;
import ai.plantdata.Creation.mode.BuilderPattern.interfaces.impl.ChickenBurger;
import ai.plantdata.Creation.mode.BuilderPattern.interfaces.impl.Coke;
import ai.plantdata.Creation.mode.BuilderPattern.interfaces.impl.Pepsi;
import ai.plantdata.Creation.mode.BuilderPattern.interfaces.impl.VerBurger;

/**
 * @Author: WangHui
 * @Date: 2020/12/18 14:32
 * @Description:
 */
public class MealBuilder {

    public Meal prepareVegMeal(){
        Meal meal = new Meal();

        meal.addItem(new VerBurger());
        meal.addItem(new Coke());
        return meal;
    }

    public Meal prepareNonVegMeal(){
        Meal meal = new Meal();
        meal.addItem(new ChickenBurger());
        meal.addItem(new Pepsi());
        return meal;
    }
}
